package com.briup.myblog.utils;

public enum ResultStatus {
    SUCCESS(1,"操作成功"),//new ResultCode(1,“成功”)

    ERROR(0,"操作失败"),
    ERROR_MMCW(0,"密码错误"),
    ERROR_LOCK(0,"账号上锁"),
    ERROR_LUNBO(30005, "轮播图不存在"),

    //根据程序功能分析：认为修改和删除数据时，存在数据错误的情况提示用户
    DATA_ERROR(10000,"数据存在错误"),
    //用户登录错误提示信息，token错误提示信息，定义在该枚举类
    USER_NOT_FOUND(10001,"用户不存在");


    ResultStatus(int status, String message){
        this.status = status;
        this.message = message;
    }
    private int status;
    private String message;

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
